package com.mach.platform.api.repository;

import com.mach.platform.api.domain.Attention;
import com.mach.platform.repository.BaseRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ConcernRepo extends BaseRepository<Attention> {

    @Query(value = "select * from concern where user_id = ?1 and dev_id in (?2)", nativeQuery = true)
    List<Attention> getListByUserIdAndDevIds(Long userId, List<Long> devId);
}
